<template>
  <div>Parent: {{ count }}</div>
  <hr />
  <Child />
</template>

<script>
import Child from './Child.vue'
import { inject } from 'vue'
export default {
  components: {
    Child,
  },
  setup() {
    const count = inject('count')
    return {
      count,
    }
  },
}
</script>
